@extends('admin.master')


@section('content')

<div class="page-container">
    <form action="/admin/cate" method="post" class="form form-horizontal" id="form-user-add">
        {{csrf_field()}}
        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">
                <span class="c-red">*</span>
                父栏目：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <select name="pid" class="span3">
                    <option value="0">不选</option>
                    @foreach($cates as $cate)
                    <option value="{{$cate->id}}">

                       <?php echo str_repeat("&nbsp;",4*$cate->lev);?> {{$cate->name}}
                    </option>
                   @endforeach
                </select>
            </div>
        </div>

        <div class="row cl">
            <label class="form-label col-xs-4 col-sm-2">
                <span class="c-red">*</span>
                栏目名称：</label>
            <div class="formControls col-xs-6 col-sm-6">
                <input type="text" class="input-text" value="" placeholder="" id="name" name="name">
            </div>
        </div>

        <div class="row cl">
            <div class="col-9 col-offset-2">
                <input class="btn btn-primary radius" type="submit" value="&nbsp;&nbsp;提交&nbsp;&nbsp;">
            </div>
        </div>
    </form>
</div>


@endsection